package hu.issue.ejb;

import hu.issue.entity.User;
import hu.issue.exceptions.UserAlreadyRegisteredException;
import hu.issue.exceptions.UserNotFoundException;

import java.util.List;

public interface UserService {

	void register(User user, String role) throws UserAlreadyRegisteredException;

	User findUserByUserNameAndPassword(String userName, String password);

	User findUserByUserName(String userName) throws UserNotFoundException;

	List<User> getUsers();

}
